<?php
	include_once("../includes/header.php");	
	include_once("../includes/connect.php");	
?>	<!-- ************** V MAIN CONTENT HERE  V ********************************************************************************** -->  
	
		<h3>SATE Templates</h3>
		<p>Corporate Black is a moderm, free valid CSS &amp; XHTML strict web template from
		<a href="../template/addtemplate.php?a=setup">Add New SATE Template</a>. 
		It is suitable for anything from corporate and business sites to personal pages. 
		This template has been tested and works perfectly in Firefox 1.5, 2, 3, 3.5; 
		Internet Explorer 6, 7, 8; Google Chrome 2 ,3;</p>

		<table cellspacing="0">
			<tr>
				<th width="20px">Id</th>
				<th>Version Name</th>
				<th width="90px">Action</th>
			</tr>
<?php
		$rs_templates = $conn1->Execute("SELECT * FROM form where deleted != '1'");
		
		while(!$rs_templates->EOF)
		{
			echo "<tr>";
			echo "<td>".$rs_templates->fields["id"]."</td>";
			echo "<td>".$rs_templates->fields["version"]."</td>";
			echo "<td><a href='../template/edittemplate.php?a=setup&i=".$rs_templates->fields["id"]."'>Edit</a> | <a href='../tamplate/deletetemplate.php?i=".$rs_templates->fields["id"]."'>Delete</a></td>";
			echo "</tr>";
			
			$rs_templates->MoveNext();
		}
?>
		</table>
		  
<?php 
	include_once("../includes/sidebar.php");
	include_once("../includes/footer.php");
?>
